<style>
    .table-adminlog tr td {
        word-break: break-all;
    }
    .img{
        width: 100px;
    }
</style>
<table class="table table-striped table-adminlog">
    <thead>
    <tr>
        <th width="100">{:__('Title')}</th>
        <th>{:__('Content')}</th>
    </tr>
    </thead>
    <tbody>

    <tr>
        <td>套餐类型名称</td>
        <td>{$detail.goods_category_name}</td>
    </tr>
    <tr>
        <td>套餐项目</td>
        <td>{$detail.profile}</td>
    </tr>
    <tr>
        <td>套餐名称</td>
        <td>{$detail.goods_name}</td>
    </tr>
    <tr>
        <td>使用人数</td>
        <td>
            {$detail.use_people_type_name}
            {if $detail.use_people_type==5}
                {$detail.start_use_people}-{$detail.end_use_people}
            {/if}
        </td>
    </tr>
    <tr>
        <td>套餐图片</td>
        <td>
            {foreach $detail.images as $index=>$vo}
            <img src="{$vo}" alt="" class="img">
            {/foreach}
        </td>
    </tr>
    <tr>
        <td>套餐sku</td>
        <td>
            {foreach $detail.sku as $index=>$vo}
            <div>套餐名称:{$vo.group_name}</div>

                {foreach $vo.sku as $indexs=>$vos}
            <div>名称:{$vos.sku_name},数量:{$vos.num},单位:{$vos.unit},价格:{$vos.price}</div>

                {/foreach}
            {/foreach}
        </td>
    </tr>
    <tr>
        <td>图文详情图片</td>
        <td>
            {foreach $detail.detail as $index=>$vo}
            <img src="{$vo}" alt="" class="img">
            {/foreach}
        </td>
    </tr>
    <tr>
        <td>库存类型</td>
        <td>
            {if $detail.stock_type==0}
            不限
            {else/}
            限制最多{$detail.stock}
            {/if}
        </td>
    </tr>
    <tr>
        <td>每日库存类型</td>
        <td>
            {if $detail.every_stock_type==0}
            不限
            {else/}
            限制最多{$detail.every_stock}
            {/if}
        </td>
    </tr>
    <tr>
        <td>每人每日最多购买类型</td>
        <td>
            {if $detail.everyone_everyday_buy_type==0}
            不限
            {else/}
            限制最多{$detail.everyone_everyday_buy}
            {/if}
        </td>
    </tr>
    <tr>
        <td>开始售卖时间类型</td>
        <td>
            {if $detail.start_sell_time_type==0}
            发布立即上线
            {else/}
            选择开始时间 {$detail.start_sell_time|datetime}
            {/if}
        </td>
    </tr>
    <tr>
        <td>结束售卖时间</td>
        <td>
            {$detail.end_sell_time|datetime}
            {if $detail.auto_continue_sell==1}
            到期自动延续30天
            {/if}
        </td>
    </tr>
    <tr>
        <td>可用时间类型</td>
        <td>

            {if $detail.may_use_time_type==0}
            固定有效期 {$detail.start_may_use_time|datetime}-{$detail.end_may_use_time|datetime}
            {else/}
            购买后{$detail.may_use_time_day}天有效
            {/if}
        </td>
    </tr>
    <tr>
        <td>使用日期类型</td>
        <td>
            {if $detail.use_date_type==0}
            所有日期可用
            {else/}
            部分日期可用 {$work_week}
            {/if}
        </td>
    </tr>
    <tr>
        <td>使用时间类型</td>
        <td>
            {if $detail.use_time_type==0}
            营业时间可用
            {else/}
            部分时间可用 {$detail.start_use_time|datetime}-{$detail.end_use_time|datetime}
            {/if}
        </td>
    </tr>
    <tr>
        <td>是否预约</td>
        <td>
            {if $detail.subscribe_type==0}
            无需预约
            {else/}
            需提前预约{$detail.subscribe_hour}小时
            {/if}
        </td>
    </tr>
    <tr>
        <td>劵限用</td>
        <td>
            {if $detail.coupon_limited==0}
            不限
            {elseif $detail.coupon_limited==1}
            每人限用{$detail.limited_num}
            {else/}
            每桌限用{$detail.limited_num}
            {/if}
        </td>
    </tr>
    <tr>
        <td>堂食外卖约定</td>
        <td>
            {$meal}
        </td>
    </tr>
    <tr>
        <td>是否可用包间</td>
        <td>
            {if $detail.privateroom_type==0}
            否
            {elseif $detail.privateroom_type==1}
            是
            {elseif $detail.privateroom_type==2}
            详细咨询客服
            {else/}
           无
            {/if}
        </td>
    </tr>
    <tr>
        <td>同时享受店内其他优惠</td>
        <td>
            {if $detail.enjoy_preferential_type==0}
            不可以
            {elseif $detail.enjoy_preferential_type==1}
            可以
            {elseif $detail.enjoy_preferential_type==2}
            详细咨询客服
            {else/}
            无
            {/if}
        </td>
    </tr>
    <tr>
        <td>其他规则补充</td>
        <td>
            {$detail.other_rule}
        </td>
    </tr>
    <tr>
        <td>团购价</td>
        <td>
            {$detail.price}
        </td>
    </tr>
    <tr>
        <td>佣金率</td>
        <td>
            {$detail.commission_rate}%
        </td>
    </tr>
    </tbody>
</table>
<div class="hide layer-footer">
    <label class="control-label col-xs-12 col-sm-2"></label>
    <div class="col-xs-12 col-sm-8">
        <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>
    </div>
</div>
